package cn.jsl.system.domain;

import cn.jsl.basic.domain.BaseDomain;
import lombok.Data;

import java.util.ArrayList;
import java.util.List;

/**
 * <p>
 * 
 * </p>
 *
 * @author jijie
 * @since 2022-06-11
 */
@Data
public class Role extends BaseDomain{



    private String name;
    private String sn;
    //用于接收前端传递的菜单的id
    private List<Long> menu = new ArrayList<>();
    //用于接收前端传递的权限的id
    private List<Long> permissions = new ArrayList<>();


    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getSn() {
        return sn;
    }

    public void setSn(String sn) {
        this.sn = sn;
    }

    @Override
    public String toString() {
        return "Role{" +
        ", name=" + name +
        ", sn=" + sn +
        "}";
    }
}
